class MeMenuItem {
  final int? id;
  final int? type;
  final String? name;
  final String? icon;
  final String? routerMap;
  final String? version;
  final dynamic? redShow;

  MeMenuItem({
    this.id,
    this.type,
    this.name,
    this.icon,
    this.routerMap,
    this.version,
    this.redShow,
  });

  factory MeMenuItem.fromJson(Map<String, dynamic> json) {
    return MeMenuItem(
      id: json['id'] as int?,
      type: json['type'] as int?,
      name: json['name'] as String?,
      icon: json['icon'] as String?,
      routerMap: json['routerMap'] as String?,
      version: json['version'] as String?,
      redShow: json['redShow'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'type': type,
      'name': name,
      'icon': icon,
      'routerMap': routerMap,
      'version': version,
      'redShow': redShow,
    };
  }
}
